package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 运费模板
 */
@ApiModel(value = "com-lanchetech-entity-Freight")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Freight implements Serializable {
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 运费模板名称
     */
    @ApiModelProperty(value = "运费模板名称")
    private String name;

    /**
     * 包邮省份code列表,逗号分隔
     */
    @ApiModelProperty(value = "包邮省份code列表,逗号分隔")
    private String codes;

    /**
     * 不配送省份code列表,逗号分隔
     */
    @ApiModelProperty(value = "不配送省份code列表,逗号分隔")
    private String notDelivery;

    /**
     * 首重运费, 一千克及以下
     */
    @ApiModelProperty(value = "首重运费, 一千克及以下")
    private BigDecimal firstWeight;

    /**
     * 续重运费, 每千克
     */
    @ApiModelProperty(value = "续重运费, 每千克")
    private BigDecimal additionalWeight;

    /**
     * 删除 0 未删除 1 已删除
     */
    @ApiModelProperty(value = "删除 0 未删除 1 已删除")
    private Byte deleted;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    /**
     * 计重或计件 0 计重 1 计件
     */
    @ApiModelProperty(value = "计重或计件 0 计重 1 计件")
    private Byte type;

    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;
}